﻿using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

namespace TomNet.Log4Net
{
    public static class ServiceCollectionExtensions
    {
        public static IServiceCollection AddLog4Net(this IServiceCollection services)
        {
            services.AddSingleton<ILoggerProvider, Log4NetLoggerProvider>();
            return services;
        }
    }
}
